package io.gitee.heis.vehicle.race.sample03;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

@Component
public class Vehicle03 implements Vehicle {

  @Autowired
  @Qualifier("v6")
  private Engine engine;

  @Override
  public int getPower() {
    return engine.getPower();
  }

  @Override
  public void setEngine(Engine engine) {
    this.engine = engine;
  }

  @Override
  public Engine getEngine() {
    return engine;
  }
}
